package com.example.demo.pojo;

import com.fasterxml.jackson.annotation.JsonAlias;

import javax.validation.constraints.NotBlank;

/**
 * @Description:
 * @Auther:ccc
 * @Date:2022/12/5 22:04
 */
public class Animal {

    @JsonAlias("aname")
    private String aName;
    @JsonAlias("agender")
    private String sex;
    @JsonAlias("age")
    @NotBlank(message = "年龄不能为空！")
    private String aAge;

}
